<html>
This page triggers two file downloads.
<script>
    var count = 0;
function triggerDownload() {
    var a = document.createElement('a');
    a.download = "test-image" + count + ".png";
    count++;
    a.href = "";
    a.click();
}

triggerDownload();
triggerDownload();
</script>
</html>